package com.dj.mingkong.admin.biz.repository.database.music.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dj.mingkong.admin.biz.controller.music.vo.request.BoxQueryVo;
import com.dj.mingkong.admin.biz.controller.music.vo.response.BoxVo;
import com.dj.mingkong.admin.biz.scheduler.vo.gen.BoxDetailVo;
import com.dj.mingkong.admin.biz.scheduler.vo.gen.ListBoxVo;
import com.dj.mingkong.common.infrastructure.eo.database.music.BoxEo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 音乐盒mapper
 *
 * @author zenglonghui
 * @date: 2022/8/31 14:44
 */
public interface BoxMapper extends BaseMapper<BoxEo> {
    /**
     * 分页查询
     *
     * @param voPage  {}
     * @param queryVo {}
     * @return BoxVo
     */
    Page<BoxVo> listPage(Page<BoxVo> voPage, @Param("queryVo") BoxQueryVo queryVo);


    /**
     * 分页获取歌单列表
     *
     * @param boxVoPage {}
     * @return ListBoxVo
     */
    Page<ListBoxVo> selectBoxPage(Page<ListBoxVo> boxVoPage);

    /**
     * 获取所有歌单数据
     *
     * @return BoxVo
     */
    List<BoxDetailVo> selectAll();
}
